// var str = 'Damn'   // new String()


// var obj = {}      // 创建对象字面量
// var obj2 = new Object();


 function Car(color){  
    //var this ={
    //name : '川崎H2',
    //height : 170,
    //weight : 300,
    //color : color,
    //}
    //return this

    this.name = '川崎H2'
    this.height = 170
    this.weight = 300
    this.color = color
}

let car = new Car('black')
console.log(car);